package view;

import java.awt.Color;
import java.util.TreeMap;

public class ViewCase implements ViewCaseInterface {

	final TreeMap<Integer, Color> MAPCOLORS;

	private Color color;
	private int y;
	private int x;

	public ViewCase(int x, int y) {
		MAPCOLORS = new TreeMap<Integer, Color>();
		MAPCOLORS.put(1, Color.yellow);
		MAPCOLORS.put(2, Color.gray);

		this.x = x;
		this.y = y;
	}

	@Override
	public Color getColor() {
		return color;
	}

	@Override
	public void setColor(int i) {
		color = MAPCOLORS.get(i);
	}

	@Override
	public int getX() {
		return x;
	}

	@Override
	public int getY() {
		return y;
	}
}
